﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Hired1Div.master" AutoEventWireup="true" CodeBehind="viewWatchList.aspx.cs" Inherits="Hired.viewWatchList" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
    <style type="text/css">
.heading
{
    position: relative;
    font-family: "Franklin Gothic Demi", "Arial";
    font-size: 30px;
    float:left;
    margin-left: 15px;
}
.gridView
{
    float:left;
    margin-left: 15px;
}
.headingline
{
    bottom:5px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPlaceHolder" runat="server">

   <div class="heading">Watch List<div class="headingline"></div></div>
   <div class="line-clear"></div>
    <asp:Panel class="gridView" ID="pnlWatchList" runat="server">
    <asp:GridView ID="gridViewWatchList" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" GridLines="Horizontal" 
            CellPadding="10">
        <AlternatingRowStyle BackColor="#CCCCFF" />
        <Columns>
            <asp:TemplateField HeaderText="Title">
                
                <ItemTemplate>
                    <asp:LinkButton ID="linkButtonJobTitle" runat="server" Text='<%# Eval("Title") %>' PostBackUrl=<%# "~/viewjob.aspx?id=" + Eval("JobID")%>></asp:LinkButton>
                    
                </ItemTemplate>
            </asp:TemplateField>
            
            <asp:BoundField DataField="Description" HeaderText="Description" />
            <asp:BoundField DataField="Location" HeaderText="Location" />
            <asp:BoundField DataField="Type" HeaderText="Type" />
            <asp:TemplateField ShowHeader="False" HeaderText="Delete">
                        <ItemTemplate>
                            <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="../images/deleteicon.png"
                                CausesValidation="False" CommandName="Delete" CommandArgument='<%# Eval("JobID") %>' />
                            <asp:Panel ID="pnlDeletePopup" runat="server" CssClass="modalPopup">
                                Are you sure you wish to delete job
                                <asp:Label ID="lbljob" runat="server" Text='<%# Eval("Title") %>' />?
                                <br />
                                <br />
                                <asp:Button ID="btnCancel" Style="float: right" runat="server" Text="Cancel" />
                                <asp:Button ID="btnConfirm" Style="float: right; margin-right: 25px;" runat="server" Text="OK" />
                                <asp:ConfirmButtonExtender ID="btnDelete_ConfirmButtonExtender" runat="server" ConfirmText=""
                                    Enabled="True" TargetControlID="btnDelete" DisplayModalPopupID="DeleteModalPopupExtender">
                                </asp:ConfirmButtonExtender>
                                <asp:ModalPopupExtender ID="DeleteModalPopupExtender" runat="server" TargetControlID="btnDelete"
                                    DropShadow="True" PopupControlID="pnlDeletePopUp" CancelControlID="btnCancel"
                                    OkControlID="btnConfirm" BackgroundCssClass="modalBackground">
                                </asp:ModalPopupExtender>
                                <br />

                            </asp:Panel>
                        </ItemTemplate>

                    </asp:TemplateField>
        </Columns>
        <HeaderStyle BackColor="#9933FF" ForeColor="White" />
        <PagerStyle BackColor="#9900FF" ForeColor="White" />
    </asp:GridView>
    </asp:Panel>


</asp:Content>
